package com.dfbz.demo01;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01_递归图解 {
    public static void main(String[] args) {
        print(1);
    }

    public static void print(int i) {
        System.out.println(i);
        if (i == 5) {
            return;
        }
        print(++i);
    }

}
